package com.imooc.girl.result;

/**
 * 返回结果枚举
 * @author Administrator
 * @date 2018-9-10
 */
public enum ResultEnums {

  // 请求成功
  SUCCESS("0", "OK"),

  PRIMARY_SCHOOL("100", "你还在上小学吧"),

  MIDDLE_SCHOOL("101", "你可能还在上初中"),

  // 其他
  ERROR_UNKNOWN("-1", "系统出现未知异常");

  private String errorCode;

  private String errorMsg;

  ResultEnums(String errorCode, String errorMsg) {
    this.errorCode = errorCode;
    this.errorMsg = errorMsg;
  }

  public String getErrorCode() {
    return errorCode;
  }

  public String getErrorMsg() {
    return errorMsg;
  }

}
